var __importDefault =
    (this && this.__importDefault) ||
    ((mod) => (mod?.__esModule ? mod : { default: mod }));
Object.defineProperty(exports, "__esModule", { value: true });
exports.getProperty = exports.setProperty = exports.copyExpression = void 0;
const generator_1 = __importDefault(require("@babel/generator"));
/**
 * Copies an expression.
 * @param expression The expression.
 * @returns The copy.
 */
const copyExpression = (expression) => {
    const parseExpression = globalThis.parser.parseExpression;
    return parseExpression((0, generator_1.default)(expression).code);
};
exports.copyExpression = copyExpression;
/**
 * Sets a property on an object.
 * @param obj The object.
 * @param property The property key.
 * @param value The value.
 */
const setProperty = (obj, _property, value) => {
    obj.property = value;
};
exports.setProperty = setProperty;
/**
 * Gets the value of a property on an object.
 * @param obj The object.
 * @param property The property key.
 * @returns
 */
const getProperty = (obj, _property) => {
    return obj.property;
};
exports.getProperty = getProperty;
